<template>
  <ul>
    <router-link :to="toRouter1" custom v-slot="{navigate,isActive}">
      <li @click="navigate">
        <span :class="isActive?'porms':''">
          <slot name="rName1"></slot>
        </span>
      </li>
    </router-link>
    <router-link :to="toRouter2" custom v-slot="{navigate,isActive}">
      <li @click="navigate">
        <span :class="isActive?'porms':''">
          <slot name="rName2"></slot>
        </span>
      </li>
    </router-link>
  </ul>
</template>
<script>
export default {
  props: {
    toRouter1: {
      type: String,
      default: ''
    },
    toRouter2: {
      type: String,
      default: ''
    }
  },
  methods: {
  }
}
</script>
<style lang="scss" scoped>
ul{
  width: 46.875rem;
  height: 6rem;
  line-height: 6rem;
  display: flex;
  li{
    flex: 1;
    text-align: center;
    span{
      display: inline-block;
      height: 5.8rem;
    }
  }
}

.porms{
  color: rgb(226, 123, 12);
  border-bottom: 3px solid rgb(226, 123, 12);
}
</style>
